home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Game / C / Cryptogram VI.cpt / Cryptogram VI / background_3258.xml next >
Extensible Markup Language  |  1992-08-05  |  27KB  |  523 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3258</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_2260.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_2641.css" />
  11.     <part>
  12.         <id>12</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>20</left>
  23.             <top>77</top>
  24.             <right>494</right>
  25.             <bottom>224</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <true /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Monaco</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>extend</textStyle>
  39.         <textHeight>36</textHeight>
  40.         <name>myPuzzle</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>6</id>
  45.         <type>field</type>
  46.         <visible> <false /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>242</left>
  55.             <top>1</top>
  56.             <right>370</right>
  57.             <bottom>50</bottom>
  58.         </rect>
  59.         <style>rectangle</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <true /> </showLines>
  62.         <wideMargins> <true /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>10</textHeight>
  72.         <name>puzzle</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>11</id>
  77.         <type>button</type>
  78.         <visible> <true /> </visible>
  79.         <reserved5> 0 </reserved5>
  80.         <reserved4> 0 </reserved4>
  81.         <reserved3> 0 </reserved3>
  82.         <reserved2> 0 </reserved2>
  83.         <reserved1> 0 </reserved1>
  84.         <enabled> <true /> </enabled>
  85.         <rect>
  86.             <left>250</left>
  87.             <top>293</top>
  88.             <right>341</right>
  89.             <bottom>316</bottom>
  90.         </rect>
  91.         <style>shadow</style>
  92.         <showName> <true /> </showName>
  93.         <highlight> <false /> </highlight>
  94.         <autoHighlight> <false /> </autoHighlight>
  95.         <sharedHighlight> <false /> </sharedHighlight>
  96.         <family>0</family>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Chicago</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>condense</textStyle>
  103.         <name>Substitute</name>
  104.         <script>on mouseDownset the hilite of the target to trueend mouseDownon mouseUp -- 6/23/92-- set the rect of field letter1 to 120,293,145,317-- set the rect of field letter1 to 216,293,241,317if the optionKey is down thenset the hilite of the target to trueif "‚Ä¢" is not in field myPuzzle thenset the hilite of the target to falseexit mouseUpend ifif line 2 of field record = "solution given" thenanswer "The solution to this cryptogram has been given." ¬¨&& "Cannot give you any free letter substitutions."set the hilite of the target to falseexit mouseUpend ifif line 1 of field record <= 0 thenanswer "Sorry, can‚Äôt give you any more free letter substitutions."set the hilite of the target to falseexit mouseUpend ifsubtract 1 from line 1 of field recordput the random of (the number of lines of field key) into randTempif the checkMark of menuItem "Difficult Puzzle" of menu "Cryptogram" = true thenput editString("ucase",last char of line randTemp of field key) into field "letter1"put editString("ucase",char 1 of line randTemp of field key) into field "letter2"elseput last char of line randTemp of field key into field "letter1"put char 1 of line randTemp of field key into field "letter2"end ifdelete line randTemp of field keyend ifif "‚Ä¢" is not in field myPuzzle and ¬¨line 3 to (the number of lines of field record) of field record = field myPuzzle thenanswer "The puzzle has been solved!"set the hilite of the target to falseput empty into field letter1put empty into field letter2exit mouseUpend ifif field "letter1" = empty or field "letter2" = empty thenanswer "Entry is incomplete‚Ķ"set the hilite of the target to falseexit mouseUpend ifreplaceInAlphabetif field "alphabet" contains field "letter2" thenput offset (field letter2, field "alphabet") into thePositionput "‚Ä¢" into char thePosition of field "alphabet"-- SET THE ENABLED OF MENUITEM "DIFFICULT PUZZLE" OF MENU CRYPTOGRAM TO FALSEend ifset cursor to 4if field "letter2" is in field myPuzzle thenrepeat until field "letter2" is not in field myPuzzleput offset (field "letter2", field myPuzzle) into deletePositionput "‚Ä¢" into char deletePosition of field myPuzzleend repeatend ifput field cryptoPuzzle into cryptoPuzzleTemp-- lock screenif the checkMark of menuItem "Difficult Puzzle" of menu "Cryptogram" ¬¨= true thenput field "letter2" into ucTemprepeat until field "letter1" is not in cryptoPuzzleTempput offset (field "letter1", cryptoPuzzleTemp) into letterPositionput ucTemp into char letterPosition of field myPuzzleput "‚Ä¢" into char letterPosition of cryptoPuzzleTempend repeatelseput editString("ucase",field "letter2") into ucTemp-- put numToChar of (charToNum of field "letter2" - 32) into ucTempput numToChar of (charToNum of field "letter2") into lcTemprepeat until field "letter1" is not in cryptoPuzzleTempput offset (field "letter1", cryptoPuzzleTemp) into letterPositionif charToNum of char letterPosition of cryptoPuzzleTemp ¬¨>= 65 and charToNum of char letterPosition of cryptoPuzzleTemp¬¨<= 90 thenput ucTemp into char letterPosition of field myPuzzleelseput lcTemp into char letterPosition of field myPuzzleend ifput "‚Ä¢" into char letterPosition of cryptoPuzzleTempend repeatend ifif field key contains field "letter2" && "=" && field "letter1" thenfind whole (field letter2 && "=" && field letter1) in field keydelete the foundLineend ifglobal thePuzzleSolved,next_field_nameput "letter1" into next_field_nameif "‚Ä¢" is not in field myPuzzle and ¬¨thePuzzleSolved = field myPuzzle thenvictoryend iflock Screenset the hilite of the target to falseput empty into field "letter1"put empty into field "letter2"end mouseUp</script>
  105.     </part>
  106.     <part>
  107.         <id>7</id>
  108.         <type>field</type>
  109.         <visible> <true /> </visible>
  110.         <dontWrap> <false /> </dontWrap>
  111.         <dontSearch> <false /> </dontSearch>
  112.         <sharedText> <false /> </sharedText>
  113.         <fixedLineHeight> <true /> </fixedLineHeight>
  114.         <autoTab> <false /> </autoTab>
  115.         <lockText> <true /> </lockText>
  116.         <rect>
  117.             <left>21</left>
  118.             <top>92</top>
  119.             <right>493</right>
  120.             <bottom>238</bottom>
  121.         </rect>
  122.         <style>transparent</style>
  123.         <autoSelect> <false /> </autoSelect>
  124.         <showLines> <false /> </showLines>
  125.         <wideMargins> <true /> </wideMargins>
  126.         <multipleLines> <false /> </multipleLines>
  127.         <reservedFamily> 0 </reservedFamily>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>center</textAlign>
  131.         <font>Monaco</font>
  132.         <textSize>12</textSize>
  133.         <textStyle>extend</textStyle>
  134.         <textHeight>36</textHeight>
  135.         <name>cryptopuzzle</name>
  136.         <script></script>
  137.     </part>
  138.     <part>
  139.         <id>18</id>
  140.         <type>field</type>
  141.         <visible> <true /> </visible>
  142.         <dontWrap> <false /> </dontWrap>
  143.         <dontSearch> <false /> </dontSearch>
  144.         <sharedText> <false /> </sharedText>
  145.         <fixedLineHeight> <true /> </fixedLineHeight>
  146.         <autoTab> <false /> </autoTab>
  147.         <lockText> <true /> </lockText>
  148.         <rect>
  149.             <left>24</left>
  150.             <top>71</top>
  151.             <right>491</right>
  152.             <bottom>89</bottom>
  153.         </rect>
  154.         <style>transparent</style>
  155.         <autoSelect> <false /> </autoSelect>
  156.         <showLines> <false /> </showLines>
  157.         <wideMargins> <false /> </wideMargins>
  158.         <multipleLines> <false /> </multipleLines>
  159.         <reservedFamily> 0 </reservedFamily>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>center</textAlign>
  163.         <font>Chicago</font>
  164.         <textSize>12</textSize>
  165.         <textStyle>condense</textStyle>
  166.         <textHeight>16</textHeight>
  167.         <name>clue</name>
  168.         <script></script>
  169.     </part>
  170.     <part>
  171.         <id>20</id>
  172.         <type>button</type>
  173.         <visible> <true /> </visible>
  174.         <reserved5> 0 </reserved5>
  175.         <reserved4> 0 </reserved4>
  176.         <reserved3> 0 </reserved3>
  177.         <reserved2> 0 </reserved2>
  178.         <reserved1> 0 </reserved1>
  179.         <enabled> <true /> </enabled>
  180.         <rect>
  181.             <left>19</left>
  182.             <top>290</top>
  183.             <right>45</right>
  184.             <bottom>325</bottom>
  185.         </rect>
  186.         <style>transparent</style>
  187.         <showName> <false /> </showName>
  188.         <highlight> <false /> </highlight>
  189.         <autoHighlight> <true /> </autoHighlight>
  190.         <sharedHighlight> <true /> </sharedHighlight>
  191.         <family>0</family>
  192.         <titleWidth>0</titleWidth>
  193.         <icon>17264</icon>
  194.         <textAlign>center</textAlign>
  195.         <font>Chicago</font>
  196.         <textSize>12</textSize>
  197.         <textStyle>plain</textStyle>
  198.         <name>About</name>
  199.         <script>on mouseUplock screenHide bkgnd btn "About"hide card btn "Quit"hide bkgnd field pressAlphabetset the rect of field instructions to  8,7,506,335set the scroll of field instructions to 0show field instructionsunlock Screen with dissolve very fastend mouseUp</script>
  200.     </part>
  201.     <part>
  202.         <id>102</id>
  203.         <type>field</type>
  204.         <visible> <true /> </visible>
  205.         <dontWrap> <false /> </dontWrap>
  206.         <dontSearch> <false /> </dontSearch>
  207.         <sharedText> <false /> </sharedText>
  208.         <fixedLineHeight> <false /> </fixedLineHeight>
  209.         <autoTab> <false /> </autoTab>
  210.         <lockText> <true /> </lockText>
  211.         <rect>
  212.             <left>60</left>
  213.             <top>295</top>
  214.             <right>219</right>
  215.             <bottom>315</bottom>
  216.         </rect>
  217.         <style>transparent</style>
  218.         <autoSelect> <false /> </autoSelect>
  219.         <showLines> <false /> </showLines>
  220.         <wideMargins> <false /> </wideMargins>
  221.         <multipleLines> <false /> </multipleLines>
  222.         <reservedFamily> 0 </reservedFamily>
  223.         <titleWidth>0</titleWidth>
  224.         <icon>0</icon>
  225.         <textAlign>left</textAlign>
  226.         <font>Chicago</font>
  227.         <textSize>12</textSize>
  228.         <textStyle>condense</textStyle>
  229.         <textHeight>12</textHeight>
  230.         <name></name>
  231.         <script></script>
  232.     </part>
  233.     <part>
  234.         <id>9</id>
  235.         <type>field</type>
  236.         <visible> <true /> </visible>
  237.         <dontWrap> <false /> </dontWrap>
  238.         <dontSearch> <false /> </dontSearch>
  239.         <sharedText> <false /> </sharedText>
  240.         <fixedLineHeight> <false /> </fixedLineHeight>
  241.         <autoTab> <false /> </autoTab>
  242.         <lockText> <true /> </lockText>
  243.         <rect>
  244.             <left>216</left>
  245.             <top>293</top>
  246.             <right>241</right>
  247.             <bottom>317</bottom>
  248.         </rect>
  249.         <style>transparent</style>
  250.         <autoSelect> <false /> </autoSelect>
  251.         <showLines> <false /> </showLines>
  252.         <wideMargins> <false /> </wideMargins>
  253.         <multipleLines> <false /> </multipleLines>
  254.         <reservedFamily> 0 </reservedFamily>
  255.         <titleWidth>0</titleWidth>
  256.         <icon>0</icon>
  257.         <textAlign>center</textAlign>
  258.         <font>Monaco</font>
  259.         <textSize>14</textSize>
  260.         <textStyle>plain</textStyle>
  261.         <textHeight>18</textHeight>
  262.         <name>letter2</name>
  263.         <script>on closeFieldglobal next_field_nameput "letter1" into next_field_nameend closeField</script>
  264.     </part>
  265.     <part>
  266.         <id>8</id>
  267.         <type>field</type>
  268.         <visible> <true /> </visible>
  269.         <dontWrap> <false /> </dontWrap>
  270.         <dontSearch> <false /> </dontSearch>
  271.         <sharedText> <false /> </sharedText>
  272.         <fixedLineHeight> <false /> </fixedLineHeight>
  273.         <autoTab> <false /> </autoTab>
  274.         <lockText> <true /> </lockText>
  275.         <rect>
  276.             <left>120</left>
  277.             <top>293</top>
  278.             <right>145</right>
  279.             <bottom>317</bottom>
  280.         </rect>
  281.         <style>transparent</style>
  282.         <autoSelect> <false /> </autoSelect>
  283.         <showLines> <false /> </showLines>
  284.         <wideMargins> <false /> </wideMargins>
  285.         <multipleLines> <false /> </multipleLines>
  286.         <reservedFamily> 0 </reservedFamily>
  287.         <titleWidth>0</titleWidth>
  288.         <icon>0</icon>
  289.         <textAlign>center</textAlign>
  290.         <font>Monaco</font>
  291.         <textSize>14</textSize>
  292.         <textStyle>plain</textStyle>
  293.         <textHeight>18</textHeight>
  294.         <name>letter1</name>
  295.         <script>on closeFieldglobal next_field_nameput "letter2" into next_field_nameend closeField</script>
  296.     </part>
  297.     <part>
  298.         <id>27</id>
  299.         <type>field</type>
  300.         <visible> <false /> </visible>
  301.         <dontWrap> <false /> </dontWrap>
  302.         <dontSearch> <false /> </dontSearch>
  303.         <sharedText> <false /> </sharedText>
  304.         <fixedLineHeight> <true /> </fixedLineHeight>
  305.         <autoTab> <false /> </autoTab>
  306.         <lockText> <false /> </lockText>
  307.         <rect>
  308.             <left>372</left>
  309.             <top>1</top>
  310.             <right>509</right>
  311.             <bottom>50</bottom>
  312.         </rect>
  313.         <style>scrolling</style>
  314.         <autoSelect> <false /> </autoSelect>
  315.         <showLines> <false /> </showLines>
  316.         <wideMargins> <false /> </wideMargins>
  317.         <multipleLines> <false /> </multipleLines>
  318.         <reservedFamily> 0 </reservedFamily>
  319.         <titleWidth>0</titleWidth>
  320.         <icon>0</icon>
  321.         <textAlign>left</textAlign>
  322.         <font>Monaco</font>
  323.         <textSize>9</textSize>
  324.         <textStyle>plain</textStyle>
  325.         <textHeight>9</textHeight>
  326.         <name>record</name>
  327.         <script></script>
  328.     </part>
  329.     <part>
  330.         <id>28</id>
  331.         <type>field</type>
  332.         <visible> <true /> </visible>
  333.         <dontWrap> <false /> </dontWrap>
  334.         <dontSearch> <false /> </dontSearch>
  335.         <sharedText> <false /> </sharedText>
  336.         <fixedLineHeight> <false /> </fixedLineHeight>
  337.         <autoTab> <false /> </autoTab>
  338.         <lockText> <true /> </lockText>
  339.         <rect>
  340.             <left>24</left>
  341.             <top>50</top>
  342.             <right>491</right>
  343.             <bottom>72</bottom>
  344.         </rect>
  345.         <style>transparent</style>
  346.         <autoSelect> <false /> </autoSelect>
  347.         <showLines> <false /> </showLines>
  348.         <wideMargins> <false /> </wideMargins>
  349.         <multipleLines> <false /> </multipleLines>
  350.         <reservedFamily> 0 </reservedFamily>
  351.         <titleWidth>0</titleWidth>
  352.         <icon>0</icon>
  353.         <textAlign>center</textAlign>
  354.         <font>Monaco</font>
  355.         <textSize>14</textSize>
  356.         <textStyle>plain</textStyle>
  357.         <textHeight>18</textHeight>
  358.         <name>alphabet</name>
  359.         <script></script>
  360.     </part>
  361.     <part>
  362.         <id>17</id>
  363.         <type>field</type>
  364.         <visible> <false /> </visible>
  365.         <dontWrap> <false /> </dontWrap>
  366.         <dontSearch> <false /> </dontSearch>
  367.         <sharedText> <false /> </sharedText>
  368.         <fixedLineHeight> <true /> </fixedLineHeight>
  369.         <autoTab> <false /> </autoTab>
  370.         <lockText> <false /> </lockText>
  371.         <rect>
  372.             <left>3</left>
  373.             <top>1</top>
  374.             <right>238</right>
  375.             <bottom>50</bottom>
  376.         </rect>
  377.         <style>scrolling</style>
  378.         <autoSelect> <false /> </autoSelect>
  379.         <showLines> <false /> </showLines>
  380.         <wideMargins> <false /> </wideMargins>
  381.         <multipleLines> <false /> </multipleLines>
  382.         <reservedFamily> 0 </reservedFamily>
  383.         <titleWidth>0</titleWidth>
  384.         <icon>0</icon>
  385.         <textAlign>left</textAlign>
  386.         <font>Geneva</font>
  387.         <textSize>10</textSize>
  388.         <textStyle>plain</textStyle>
  389.         <textHeight>10</textHeight>
  390.         <name>sayings</name>
  391.         <script></script>
  392.     </part>
  393.     <part>
  394.         <id>1</id>
  395.         <type>field</type>
  396.         <visible> <false /> </visible>
  397.         <dontWrap> <false /> </dontWrap>
  398.         <dontSearch> <false /> </dontSearch>
  399.         <sharedText> <false /> </sharedText>
  400.         <fixedLineHeight> <false /> </fixedLineHeight>
  401.         <autoTab> <false /> </autoTab>
  402.         <lockText> <false /> </lockText>
  403.         <rect>
  404.             <left>3</left>
  405.             <top>52</top>
  406.             <right>59</right>
  407.             <bottom>296</bottom>
  408.         </rect>
  409.         <style>scrolling</style>
  410.         <autoSelect> <false /> </autoSelect>
  411.         <showLines> <false /> </showLines>
  412.         <wideMargins> <false /> </wideMargins>
  413.         <multipleLines> <false /> </multipleLines>
  414.         <reservedFamily> 0 </reservedFamily>
  415.         <titleWidth>0</titleWidth>
  416.         <icon>0</icon>
  417.         <textAlign>center</textAlign>
  418.         <font>N Helvetica Narrow</font>
  419.         <textSize>10</textSize>
  420.         <textStyle>plain</textStyle>
  421.         <textHeight>10</textHeight>
  422.         <name>key</name>
  423.         <script></script>
  424.     </part>
  425.     <part>
  426.         <id>100</id>
  427.         <type>field</type>
  428.         <visible> <true /> </visible>
  429.         <dontWrap> <false /> </dontWrap>
  430.         <dontSearch> <false /> </dontSearch>
  431.         <sharedText> <false /> </sharedText>
  432.         <fixedLineHeight> <false /> </fixedLineHeight>
  433.         <autoTab> <false /> </autoTab>
  434.         <lockText> <true /> </lockText>
  435.         <rect>
  436.             <left>21</left>
  437.             <top>266</top>
  438.             <right>495</right>
  439.             <bottom>287</bottom>
  440.         </rect>
  441.         <style>transparent</style>
  442.         <autoSelect> <false /> </autoSelect>
  443.         <showLines> <false /> </showLines>
  444.         <wideMargins> <false /> </wideMargins>
  445.         <multipleLines> <false /> </multipleLines>
  446.         <reservedFamily> 0 </reservedFamily>
  447.         <titleWidth>0</titleWidth>
  448.         <icon>0</icon>
  449.         <textAlign>center</textAlign>
  450.         <font>Monaco</font>
  451.         <textSize>14</textSize>
  452.         <textStyle>plain</textStyle>
  453.         <textHeight>18</textHeight>
  454.         <name>pressAlphabet</name>
  455.         <script>on mouseDownput word 2 of the clickChunk into theLetterif the value of the clickChunk is in "abcdefghijklmnopqrstuvwxyz" thenselect char (theLetter - 1) to (theLetter + 1) of the targetglobal next_field_nameput the value of the clickChunk into field next_field_namesend closeField to field next_Field_nameelseif there is a menu "Cryptogram" thenif the checkMark of menuItem "Sound" of menu "Cryptogram" = true thenplay fluteelseflashend ifend ifexit mouseDownend ifend mouseDown</script>
  456.     </part>
  457.     <part>
  458.         <id>104</id>
  459.         <type>button</type>
  460.         <visible> <true /> </visible>
  461.         <reserved5> 0 </reserved5>
  462.         <reserved4> 0 </reserved4>
  463.         <reserved3> 0 </reserved3>
  464.         <reserved2> 0 </reserved2>
  465.         <reserved1> 0 </reserved1>
  466.         <enabled> <true /> </enabled>
  467.         <rect>
  468.             <left>358</left>
  469.             <top>293</top>
  470.             <right>448</right>
  471.             <bottom>316</bottom>
  472.         </rect>
  473.         <style>shadow</style>
  474.         <showName> <true /> </showName>
  475.         <highlight> <false /> </highlight>
  476.         <autoHighlight> <true /> </autoHighlight>
  477.         <sharedHighlight> <true /> </sharedHighlight>
  478.         <family>0</family>
  479.         <titleWidth>0</titleWidth>
  480.         <icon>0</icon>
  481.         <textAlign>center</textAlign>
  482.         <font>Chicago</font>
  483.         <textSize>12</textSize>
  484.         <textStyle>condense</textStyle>
  485.         <name>New Puzzle</name>
  486.         <script>on mouseUP -- NEW PROCEDURE TO SCRAMBLE LETTERS 7/11/92global scrambleTimerif the optionKey is down thenput "true" into optionKeyDownput "stop" into scrambleTimerelseput "false" into optionKeyDownput the seconds into scrambleTimerend ifinitializeFieldsif there is no menu "Cryptogram" then createCryptogramMenuset enabled of menuItem "Difficult Puzzle" of menu "Cryptogram" to false-- PICKS THE CLUE AND PUZZLE FROM FIELD SAYINGS 6/22/92put return & "Generating the cryptogram‚Ķ" & return & "Picking the puzzle" into cd field updatelock screenput the random of 2 into tossUpset itemdelimiter to tabif optionKeydown = true thenput cd field inorder into randNoif item 2 of line randNo of field sayings = empty thenput "Puzzle #" & randNo into field clueelseif tossUp = 2 thenput "Puzzle #" & randNo into field clueelseput "Puzzle #" & randNo & ":  " & item 2 of line randNo of field sayings into field clueend ifend ifadd 1 to cd field inordersend closeField to cd field inorderelseput the random of (the number of lines of field sayings) into randNoif tossUp = 2 thenput empty into field clueelseput item 2 of line randNo of field sayings into field clueend ifend ifput item 3 of line randNo of field sayings into field puzzletoggleDifficultPuzzleglobal alphabetMemoryput field "alphabet" into alphabetMemoryunlock Screen with dissolve very fastput "abcdefghijklmnopqrstuvwxyz" into decodeAlphabetput "abcdefghijklmnopqrstuvwxyz" into encodeAlphabetrepeat with x = 1 to the number of chars of decodeAlphabetif char x of decodeAlphabet is in field puzzle thenput char x of decodeAlphabet into decodeLetterput the random of the number of chars of encodeAlphabet into theNumberput char theNumber of encodeAlphabet into encodeLetterput decodeLetter && "=" && encodeLetter & return after keyMemorydelete char theNumber of encodeAlphabetend ifend repeatput keyMemory into field key-- CONVERTS PUZZLE TO CAPS WHEN "DIFFICULT PUZZLE" IS CHOSEN-- USING editString("UCase", source) XCMDglobal puzzleMemory,thePuzzleSolvedput field puzzle into puzzleMemoryput field puzzle into thePuzzleSolvedif the checkMark of menuItem "Difficult Puzzle" of menu "Cryptogram" = true thenput editString("UCase", puzzleMemory) into puzzleMemoryput puzzleMemory into field puzzleput editString("UCase", thePuzzleSolved) into thePuzzleSolvedrepeat with x = 1 to the number of chars of thePuzzleSolvedif charToNum of char x of thePuzzleSolved = 64 then put return ¬¨into char x of thePuzzleSolvedend repeatelserepeat with x = 1 to the number of chars of thePuzzleSolvedif charToNum of char x of thePuzzleSolved = 64 then put return ¬¨into char x of thePuzzleSolvedend repeatend ifput thePuzzleSolved into line 3 of field record-- CALCULATES THE NUMBER OF FREE HELPSput (the number of words of thePuzzleSolved - 1) into theSpacesput (the number of chars of thePuzzleSolved) into theCharsput (theChars - theSpaces) into theCharsif theChars <= 25 then put 0 into line 1 of field recordelseif theChars >= 22 and theChars <= 44 then put 1 into line 1 of field recordelseif theChars >= 45 and theChars <= 60 then put 2 into line 1 of field recordelseif theChars >= 61 and theChars <= 81 then put 3 into line 1 of field recordelseif theChars >= 82 and theChars <= 100 then put 4 into line 1 of field recordelseif theChars >= 101 then put 5 into line 1 of field recordend ifend ifend ifend ifend if-- GENERATING CRYPTOGRAMput the number of chars of field puzzle into howManyput return & "Generating the cryptogram‚Ķ" & return & ¬¨"Characters left to scramble: " & howMany into cd field updateput field puzzle into puzzleTempput empty into myPuzzleTempput empty into cryptoPuzzleTemprepeat with x = 1 to the number of chars of puzzleTempif last char of howMany = 0 thenput howMany into last word of cd field updateend ifsubtract 1 from howManyput charToNum of char x of puzzleTemp into IDnumberput offset (char x of puzzleTemp && "=",keyMemory) + 4 into encPositionif IDnumber >= 97 and IDnumber <= 122 thenput char encPosition of keyMemory into theCharelse if IDnumber >= 65 and IDnumber <= 90 thenput (charToNum of char encPosition of keyMemory - 32) into theCharput numToChar of theChar into theCharend ifif IDnumber >= 97 and IDnumber <= 122 thenput "‚Ä¢" after myPuzzleTempput theChar after cryptoPuzzleTempnext repeatelse if IDnumber >= 65 and IDnumber <= 90 thenput "‚Ä¢" after myPuzzleTempput theChar after cryptoPuzzleTempnext repeatelse if IDnumber >= 64 thenput return after myPuzzleTempput return after cryptoPuzzleTempnext repeatelse if IDnumber = 201 or ¬¨IDnumber >= 32 and IDnumber <= 63 or ¬¨IDnumber >= 210 and IDnumber <= 213 thenput char x of puzzleTemp after myPuzzleTempput char x of puzzleTemp after cryptoPuzzleTempend ifend repeathide cd field updatelock Screenput myPuzzleTemp into field myPuzzleglobal myPuzzleMemoryput myPuzzleTemp into myPuzzleMemoryput cryptoPuzzleTemp into field cryptoPuzzleglobal next_field_nameput "letter1" into next_field_nameunlock Screen with dissolve very fasthide msgif there is a menu "Cryptogram" and the checkMark of ¬¨menuItem "Sound" of menu "Cryptogram" = true thenplay "flute" tempo 300 "C3e. E G C4w"end ifget the freeSize of this stackif it >= (the Size of this stack * .25) then compactThisStackend mouseUp</script>
  487.     </part>
  488.     <part>
  489.         <id>21</id>
  490.         <type>field</type>
  491.         <visible> <false /> </visible>
  492.         <dontWrap> <false /> </dontWrap>
  493.         <dontSearch> <true /> </dontSearch>
  494.         <sharedText> <false /> </sharedText>
  495.         <fixedLineHeight> <false /> </fixedLineHeight>
  496.         <autoTab> <false /> </autoTab>
  497.         <lockText> <true /> </lockText>
  498.         <rect>
  499.             <left>8</left>
  500.             <top>7</top>
  501.             <right>506</right>
  502.             <bottom>335</bottom>
  503.         </rect>
  504.         <style>scrolling</style>
  505.         <autoSelect> <false /> </autoSelect>
  506.         <showLines> <false /> </showLines>
  507.         <wideMargins> <true /> </wideMargins>
  508.         <multipleLines> <false /> </multipleLines>
  509.         <reservedFamily> 0 </reservedFamily>
  510.         <titleWidth>0</titleWidth>
  511.         <icon>0</icon>
  512.         <textAlign>left</textAlign>
  513.         <font>Geneva</font>
  514.         <textSize>12</textSize>
  515.         <textStyle>condense</textStyle>
  516.         <textHeight>16</textHeight>
  517.         <name>instructions</name>
  518.         <script>on mouseUplock ScreenHide field "instructions"show bkgnd field pressAlphabetshow bkgnd btn "About"show card btn "Quit"unlock Screen with dissolve very fastend mouseUp</script>
  519.     </part>
  520.     <name>Cryptogram bkgnd</name>
  521.     <script>on replaceInAlphabetlock screenput offset (field "letter1", field cryptoPuzzle) into letterPlaceif char letterPlace of field myPuzzle ‚↠"‚Ä¢" thenput char letterPlace of field myPuzzle into letterTempglobal alphabetMemoryput offset (letterTemp, alphabetMemory) into replaceHereif the charToNum of letterTemp >= 65 and charToNum of letterTemp ¬¨<= 90 thenput numToChar of (charToNum of letterTemp + 32) into letterTempend ifput letterTemp into char replaceHere of field "alphabet"end ifif the checkMark of menuItem "Difficult Puzzle" of menu "Cryptogram" ¬¨= true thenput editString("ucase",field alphabet) into field alphabetend ifunlock screenend replaceInAlphabeton victory -- 6/24/92set the enabled of menuitem "Difficult Puzzle" of menu "Cryptogram" to trueput line 3 to (the number of lines of field record) of field record into field myPuzzleput the random of 5 into tuneNumberif tuneNumber = 1 then-- FOR HE'S A JOLLY GOOD FELLOWput 200 into theTempoput "d4e eq ee ee de ee fq. eq" &&¬¨"e4e dq de de ce de eq. cq" &&¬¨"d4e eq ee ee de ee fq. ah." &&¬¨"gq ge ae ge fq de cq" into playTuneelse if tuneNumber = 2 then-- TARENTELLAput 250 into theTempoput "A3e B C4 B3 A E4q Ee A3q Ae F4q Fe A3q Ae E4h. 0e B3 C4 D C" &&¬¨"B3 C4q Ce A3q Ae Bq Be Fq Fe Bq Be Eq. 0e A3 B C4 B3 A E4q Ee" &&¬¨"Eq Ee Eq Ee Eq Ee Ah. 0e A4 B C5 B4 A G G5 F E D C B4 A G F" &&¬¨"E D Cw." into playTuneelse if tuneNumber = 3 then-- GAVOTTE AND VARIATION?put 128 into theTempoput "B5q Ge. Es De. Bs Ce. As Bq Ge. Es De. Bs Ce. As B A# B F# G" &&¬¨"F# G D# E D# E B4 C5 B4 C5 A4 B A B F# G F# G D# E D# E B3 C4" &&¬¨"B3 C4 F# Gq F#e. Es Dh Gq F#e. Es Dh Gq D G D Ge. Ds Ge. Ds" &&¬¨"Ge. Ds G4e. Ds Gw." into playTuneelse if tuneNumber = 4 then-- Wachet Augput 100 into theTempoput "Bb3e Eb4s F G 0 G4e F Ab G Bb3 Ab G4s Eb Fe Ab3 G D4 Eb 0 Bb3" &&¬¨"Eb4s F G 0 G4e F Ab G Bb3 Ab G4s Eb Fe Ab3 G D4 Eb 0w." into playTuneelse if tuneNumber = 5 then-- Alla Turkaput 180 into theTempoput "B4s A G# A C5e. 0 D5s C B4 C5 Ee. 0 F5s E D# E B A G# A B A G#" &&¬¨"A C6q A5e B C6 B5 A G# A E F D Ce. 0s C5 B4 C5 B4 Aq" into playTuneend ifhide btn "okay"hide btn "Cancel"hide cd field myGuessshow field cryptoPuzzleif there is a menu "Cryptogram" thenif the checkMark of menuItem "Sound" of menu "Cryptogram" = true thenplay flute tempo theTempo playTuneend ifend ifanswer "Congratulations! You've solved the puzzle!" ¬¨with "Thank You!"end victory</script>
  522. </background>
  523.